home *** CD-ROM | disk | FTP | other *** search
/ Nejlepší hry / Nejlepsi hry.iso / hry / 6zenichu / 6+1 install_txt.exe / 6 zenichu a 1 navic.exe / scripts / DefineButton2_3932 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2003-11-28  |  852 b   |  37 lines

  1. on(release){
  2.    if(_root.poz == "c")
  3.    {
  4.       if(0 < _root.draglej)
  5.       {
  6.          _root.d_venca.l = "mon_ns_" add random(_root.NS_NUMBER) add "_100";
  7.          _root.d_venca.i = "go";
  8.          _root.stopdragall();
  9.          _root.hideall();
  10.       }
  11.       else
  12.       {
  13.          if(_root.st_hermina == 3)
  14.          {
  15.             _root.st_hermina = 4;
  16.             _root.st_evelina = 1;
  17.             _root.d_ucitelka.l = "d12_0b_100";
  18.          }
  19.          else if(_root.st_hermina >= 4)
  20.          {
  21.             _root.d_ucitelka.l = "d12_0c_100";
  22.          }
  23.          else
  24.          {
  25.             _root.d_ucitelka.l = "d12_0a_100";
  26.          }
  27.          _root.zbudka.gotoAndPlay("zvonek");
  28.          _root.hideall();
  29.       }
  30.    }
  31.    else
  32.    {
  33.       _root.venca.gotoAndPlay(_root.poz add "c");
  34.       _root.stopdragall();
  35.    }
  36. }
  37.